package com.hopes.bizz.risk.transfer.bean.dto;

import com.hopes.bizz.risk.transfer.validation.UUID;
import com.hopes.bizz.risk.transfer.validation.group.SeqOne;
import com.hopes.bizz.risk.transfer.validation.group.SeqTwo;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author lyb
 * @version 1.0
 * @date 2024/1/31 16:15
 */

@Data
public class RiskBaseDto implements Serializable {

    private static final long serialVersionUID = -4352229591940122725L;

    @NotBlank(message = "主键唯一编码为空", groups = SeqOne.class)
    @UUID(message = "ID不符合UUID正则", groups = SeqTwo.class)
    private String id;

    @NotBlank(message = "企业编码为空", groups = SeqOne.class)
    private String companyCode;
}
